// 路由配置
import Layout from "@/pages/Layout";
import Login from "@/pages/Login";
import { createBrowserRouter } from "react-router-dom";

// 初始化路由实例
const router = createBrowserRouter([
  {
    path: '/',
    element: <Layout />,
    children: [
      {
        path: '/',
        element: <div>首页</div>
      }
    ]
  },
  {
    path: '/login',
    element: <Login />
  }
])
export default router